﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KUMA.CellularAutomata.HelperLibrary
{
   public  class Cell
   {
       private int _CellID;
       private bool _IsAlive;
       private int _CellX;
       private int _CellY;

       public Cell()
       {
           this.CellID =0;
           this.IsAlive = false;
           this.CellY =0;
           this.CellX =0;
       }

       public Cell(Cell CloneCell)
       {
           this.CellID = CloneCell.CellID;
           this.IsAlive = CloneCell.IsAlive;
           this.CellY = CloneCell.CellY;
           this.CellX = CloneCell.CellX;
       }

       /// <summary>
       /// 是否存活
       /// </summary>
       public bool IsAlive
       {
           get { return _IsAlive; }
           set { _IsAlive = value; }
       }

       /// <summary>
       /// 细胞ID
       /// </summary>
       public int CellID
       {
           get { return _CellID; }
           set { _CellID = value; }
       }
       
       /// <summary>
       /// 细胞的X坐标
       /// </summary>
       public int CellX
       {
           get { return _CellX; }
           set { _CellX = value; }
       }
       
       /// <summary>
       /// 细胞的Y坐标
       /// </summary>
       public int CellY
       {
           get { return _CellY; }
           set { _CellY = value; }
       }
   }
}
